package com.dunqi.gpm.shunqing.home.activity;

import android.os.Bundle;

import com.dunqi.gpm.shunqing.R;
import com.dunqi.gpm.shunqing.common.base.BaseAct;
import com.dunqi.gpm.shunqing.common.view.ComTitleBar;
import com.dunqi.gpm.shunqing.home.fragment.DevelopListFragment;
import com.dunqi.gpm.shunqing.my.util.UserUtil;

import butterknife.BindView;

public class InstructionsProjectActivity extends BaseAct {


    @BindView(R.id.title_bar)
    ComTitleBar titleBar;

    @Override
    protected void refreshData(Bundle savedInstanceState) {

    }

    @Override
    protected void initUiAndListener() {

        int levelType = UserUtil.getLevelType();
        if (UserUtil.userIsLeader()) {
            titleBar.setTitle("工作批示");
        } else {
            titleBar.setTitle("批示查询");
        }

//        getSupportFragmentManager().beginTransaction()
//                .add(R.id.container, ProjectListInstructionsFragment.newInstance(new HashMap<String, String>(),0))
//                .commit();

        getSupportFragmentManager().beginTransaction()
                .replace(R.id.container, new DevelopListFragment())
                .commit();
    }


    @Override
    protected int getLayoutId() {
        return R.layout.activity_instructions_project;
    }


}
